package top.lyunz.fangkeji.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.lyunz.fangkeji.bean.Equipment;
import top.lyunz.fangkeji.bean.pageselect;
import top.lyunz.fangkeji.mapper.equipmentMapper;
import top.lyunz.fangkeji.service.equipmentService;
@Service
public class equipmentServiceImpl implements equipmentService {
	@Autowired
	private equipmentMapper equipmentMapper;
	@Override
	public List<Equipment> getAllEquipments(int cId) {
		// TODO Auto-generated method stub
		return equipmentMapper.getAllEquipments(cId);
	}
	@Override
	public List<Equipment> getByPageEquipments(pageselect pageselect) {
		// TODO Auto-generated method stub
		return equipmentMapper.getByPageEquipments(pageselect);
	}
	@Override
	public int equipmentAdd(Equipment equipment) {
		// TODO Auto-generated method stub
		return equipmentMapper.equipmentAdd(equipment);
	}
	@Override
	public Equipment getEquipmentBySn(String sN) {
		// TODO Auto-generated method stub
		return equipmentMapper.getEquipmentBySn(sN);
	}
	@Override
	public int updEquipmentByeId(Equipment equipment) {
		// TODO Auto-generated method stub
		return equipmentMapper.updEquipmentByeId(equipment);
	}
	@Override
	public Equipment getEquipmentByeId(int eid) {
		// TODO Auto-generated method stub
		return equipmentMapper.getEquipmentByeId(eid);
	}
	@Override
	public int updEquipmentByesN(Equipment equipment) {
		// TODO Auto-generated method stub
		return equipmentMapper.updEquipmentByesN(equipment);
	}
	@Override
	public List<Equipment> getEquipmentsByCidAndLikeeName(Equipment equipment) {
		// TODO Auto-generated method stub
		return equipmentMapper.getEquipmentsByCidAndLikeeName(equipment);
	}
	@Override
	public int delEquipments(int eId) {
		return equipmentMapper.delEquipments(eId);
	}

}
